<!--
  Generated template for the Workerapply page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
	<ion-navbar>
		<ion-title>{{title}}</ion-title>
	</ion-navbar>
</ion-header>

<ion-content>
	<ion-list class="apply">
		<!--主体相关 -->
		<ion-item class="sitem" *ngIf="inputView.applycompany">
			<ion-label fixed><span>*</span>{{inputViewName.applycompany}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applycompany" interface="popover">
				<ion-option value="nes">NES</ion-option>
				<ion-option value="n64">Nintendo64</ion-option>
				<ion-option value="ps">PlayStation</ion-option>
				<ion-option value="genesis">Sega Genesis</ion-option>
				<ion-option value="saturn">Sega Saturn</ion-option>
				<ion-option value="snes">SNES</ion-option>
			</ion-select>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyproject">
			<ion-label fixed><span>*</span>{{inputViewName.applyproject}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyproject"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applydepartment">
			<ion-label fixed><span>*</span>{{inputViewName.applydepartment}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applydepartment" interface="popover">
				<ion-option value="nes">NES</ion-option>
				<ion-option value="n64">Nintendo64</ion-option>
				<ion-option value="ps">PlayStation</ion-option>
				<ion-option value="genesis">Sega Genesis</ion-option>
				<ion-option value="saturn">Sega Saturn</ion-option>
				<ion-option value="snes">SNES</ion-option>
			</ion-select>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyapplytime">
			<ion-label fixed><span>*</span>{{inputViewName.applyapplytime}}</ion-label>
			<ion-datetime [(ngModel)]="inputViewModel.applyapplytime" type="datetime-local" pickerFormat="YYYY MM DD" displayFormat="YYYY-MM-DD" min="1949-01-01" max="2100-12-31" cancelText="取消" doneText="确认"></ion-datetime>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applysharetime">
			<ion-label fixed><span>*</span>{{inputViewName.applysharetime}}</ion-label>
			<ion-datetime [(ngModel)]="inputViewModel.applysharetime" type="datetime-local" pickerFormat="YYYY MM DD" displayFormat="YYYY-MM-DD" min="1949-01-01" max="2100-12-31" cancelText="取消" doneText="确认"></ion-datetime>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyaccruedtime">
			<ion-label fixed><span>*</span>{{inputViewName.applyaccruedtime}}</ion-label>
			<ion-datetime [(ngModel)]="inputViewModel.applyaccruedtime" type="datetime-local" pickerFormat="YYYY MM DD" displayFormat="YYYY-MM-DD" min="1949-01-01" max="2100-12-31" cancelText="取消" doneText="确认"></ion-datetime>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyhandler">
			<ion-label fixed><span>*</span>{{inputViewName.applyhandler}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applyhandler" interface="popover">
				<ion-option value="nes">NES</ion-option>
				<ion-option value="n64">Nintendo64</ion-option>
				<ion-option value="ps">PlayStation</ion-option>
				<ion-option value="genesis">Sega Genesis</ion-option>
				<ion-option value="saturn">Sega Saturn</ion-option>
				<ion-option value="snes">SNES</ion-option>
			</ion-select>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applymaketable">
			<ion-label fixed><span>*</span>{{inputViewName.applymaketable}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applymaketable" interface="popover">
				<ion-option value="nes">NES</ion-option>
				<ion-option value="n64">Nintendo64</ion-option>
				<ion-option value="ps">PlayStation</ion-option>
				<ion-option value="genesis">Sega Genesis</ion-option>
				<ion-option value="saturn">Sega Saturn</ion-option>
				<ion-option value="snes">SNES</ion-option>
			</ion-select>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyamountname">
			<ion-label fixed><span>*</span>{{inputViewName.applyamountname}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyamountname"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyshareproject">
			<ion-label fixed><span>*</span>{{inputViewName.applyshareproject}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyshareproject"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyaccruedamount">
			<ion-label fixed><span>*</span>{{inputViewName.applyaccruedamount}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyaccruedamount"></ion-input>
		</ion-item>
		<!--金额相关 -->
		<ion-item class="sitem" *ngIf="inputView.applyamount">
			<ion-label fixed class="fix-rmb">
				<div class="title"><span>*</span>{{inputViewName.applyamount}}</div>
				<span class="rmb">RMB大写</span></ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyamountMax"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyamount">
			<ion-label fixed class="fix-rmb">
				<div class="title"></div>
				<span class="rmb">RMB小写</span></ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyamountMin"></ion-input>
		</ion-item>
		<!--银行相关 -->
		<ion-item class="sitem" *ngIf="inputView.applybankunitname">
			<ion-label fixed><span>*</span>{{inputViewName.applybankunitname}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applybankunitname"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applybankusername">
			<ion-label fixed><span>*</span>{{inputViewName.applybankusername}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applybankusername" interface="popover">
				<ion-option value="nes">NES</ion-option>
				<ion-option value="n64">Nintendo64</ion-option>
				<ion-option value="ps">PlayStation</ion-option>
				<ion-option value="genesis">Sega Genesis</ion-option>
				<ion-option value="saturn">Sega Saturn</ion-option>
				<ion-option value="snes">SNES</ion-option>
			</ion-select>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applybankno">
			<ion-label fixed><span>*</span>{{inputViewName.applybankno}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applybankno"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applybankname">
			<ion-label fixed><span>*</span>{{inputViewName.applybankname}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applybankname"></ion-input>
		</ion-item>
		<!--就业相关 -->
		<ion-item class="sitem" *ngIf="inputView.applyworkeramount">
			<ion-label fixed><span>*</span>{{inputViewName.applyworkeramount}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyworkeramount"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyworkercount">
			<ion-label fixed><span>*</span>{{inputViewName.applyworkercount}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyworkercount"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyworkerpercent">
			<ion-label fixed><span>*</span>{{inputViewName.applyworkerpercent}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyworkerpercent"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyworkerpercentcount">
			<ion-label fixed><span>*</span>{{inputViewName.applyworkerpercentcount}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyworkerpercentcount"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyworkerpayamount">
			<ion-label fixed><span>*</span>{{inputViewName.applyworkerpayamount}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyworkerpayamount"></ion-input>
		</ion-item>
		<!--动态新增 -->
		<ion-item class="aitem" *ngIf="inputView.applyautotype7">
			<button ion-button (click)="ionViewDidAddAuto(7)">新增</button>
		</ion-item>
		<div class="applyauto" *ngFor="let item of inputViewModel.applyautotype7items">
			<ion-item class="sitem stitem1">
				<ion-label fixed>序号</ion-label>
				<ion-input type="number" [(ngModel)]="item.num"></ion-input>
			</ion-item>
			<ion-item class="sitem stitem2">
				<ion-label fixed>分摊事项</ion-label>
				<ion-input type="text" [(ngModel)]="item.mat"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>合同编号</ion-label>
				<ion-input type="text" [(ngModel)]="item.code"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>合同总额</ion-label>
				<ion-input type="text" [(ngModel)]="item.amount"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>仓储服务费</ion-label>
				<ion-input type="text" [(ngModel)]="item.service"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>{{year}}年预计成本金额</ion-label>
				<ion-input type="text" [(ngModel)]="item.yearamount"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>{{year}}年取得可抵扣进项税额</ion-label>
				<ion-input type="text" [(ngModel)]="item.yeartax"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>合同期限</ion-label>
				<ion-datetime [(ngModel)]="item.endtime" type="datetime-local" pickerFormat="YYYY MM DD" displayFormat="YYYY-MM-DD" min="1949-01-01" max="2100-12-31" cancelText="取消" doneText="确认"></ion-datetime>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>每月分摊额</ion-label>
				<ion-input type="text" [(ngModel)]="item.everyshare"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>本月分摊额</ion-label>
				<ion-input type="text" [(ngModel)]="item.monshare"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>本年累计至本月分摊额</ion-label>
				<ion-input type="text" [(ngModel)]="item.yearmon"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>本年累计至本月未分摊额</ion-label>
				<ion-input type="text" [(ngModel)]="item.yearmonend"></ion-input>
			</ion-item>
			<ion-item class="sitem stitem3">
				<ion-label fixed>备注</ion-label>
				<ion-input type="text" [(ngModel)]="item.note"></ion-input>
			</ion-item>
		</div>
		<ion-item class="aitem" *ngIf="inputView.applyautotype8">
			<button ion-button (click)="ionViewDidAddAuto(8)">新增</button>
		</ion-item>
		<div class="applyauto" *ngFor="let item of inputViewModel.applyautotype8items">
			<ion-item class="sitem stitem1">
				<ion-label fixed>序号</ion-label>
				<ion-input type="number" [(ngModel)]="item.num"></ion-input>
			</ion-item>
			<ion-item class="sitem stitem2">
				<ion-label fixed>部门</ion-label>
				<ion-select [(ngModel)]="item.depart" interface="popover">
					<ion-option value="nes">NES</ion-option>
					<ion-option value="n64">Nintendo64</ion-option>
					<ion-option value="ps">PlayStation</ion-option>
					<ion-option value="genesis">Sega Genesis</ion-option>
					<ion-option value="saturn">Sega Saturn</ion-option>
					<ion-option value="snes">SNES</ion-option>
				</ion-select>
				<i class="iconfont icon-sousuo" item-end></i>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>应分摊成本费用金额</ion-label>
				<ion-input type="number" [(ngModel)]="item.amount"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>应分摊可抵扣进项税额</ion-label>
				<ion-input type="number" [(ngModel)]="item.tax"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>应分摊价税合计</ion-label>
				<ion-input type="number" [(ngModel)]="item.sum"></ion-input>
			</ion-item>
			<ion-item class="sitem stitem3">
				<ion-label fixed>备注</ion-label>
				<ion-input type="text" [(ngModel)]="item.note"></ion-input>
			</ion-item>
		</div>
		<ion-item class="aitem" *ngIf="inputView.applyautotype9">
			<button ion-button (click)="ionViewDidAddAuto(9)">新增</button>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyautotype9">
			<ion-label fixed>计提项值-合计</ion-label>
			<ion-input type="text"></ion-input>
		</ion-item>
		<div class="applyauto" *ngFor="let item of inputViewModel.applyautotype9items">
			<ion-item class="sitem stitem1">
				<ion-label fixed>序号</ion-label>
				<ion-input type="number" [(ngModel)]="item.num"></ion-input>
			</ion-item>
			<ion-item class="sitem stitem2">
				<ion-label fixed>计提名称</ion-label>
				<ion-input type="text" [(ngModel)]="item.name"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>计提项值</ion-label>
				<ion-input type="number" [(ngModel)]="item.value"></ion-input>
			</ion-item>
		</div>
		<ion-item class="aitem" *ngIf="inputView.applyautotype10">
			<button ion-button (click)="ionViewDidAddAuto(10)">新增</button>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyautotype10">
			<ion-label fixed>计提项值-合计</ion-label>
			<ion-input type="text"></ion-input>
		</ion-item>
		<div class="applyauto" *ngFor="let item of inputViewModel.applyautotype10items">
			<ion-item class="sitem stitem1">
				<ion-label fixed>序号</ion-label>
				<ion-input type="number" [(ngModel)]="item.num"></ion-input>
			</ion-item>
			<ion-item class="sitem stitem2">
				<ion-label fixed>计提名称</ion-label>
				<ion-input type="text" [(ngModel)]="item.name"></ion-input>
			</ion-item>
			<ion-item class="sitem">
				<ion-label fixed>计提项值</ion-label>
				<ion-input type="number" [(ngModel)]="item.value"></ion-input>
			</ion-item>
		</div>
		<!--意见相关 -->
		<ion-item class="titem" *ngIf="inputView.applygeneralnote">
			<ion-label stacked>{{inputViewName.applygeneralnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applygeneralnote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applydepartnote">
			<ion-label stacked>{{inputViewName.applydepartnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applydepartnote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applyaccountnote">
			<ion-label stacked>{{inputViewName.applyaccountnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyaccountnote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applyleadershipnote">
			<ion-label stacked>{{inputViewName.applyleadershipnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyleadershipnote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applyhandlernote">
			<ion-label stacked>{{inputViewName.applyhandlernote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyhandlernote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applyofficenote">
			<ion-label stacked>{{inputViewName.applyofficenote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyofficenote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applyfinancialnote">
			<ion-label stacked>{{inputViewName.applyfinancialnote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applyfinancialnote"></ion-textarea>
		</ion-item>
		<ion-item class="titem" *ngIf="inputView.applymanagernote">
			<ion-label stacked>{{inputViewName.applymanagernote}}</ion-label>
			<ion-textarea [(ngModel)]="inputViewModel.applymanagernote"></ion-textarea>
		</ion-item>
		<!--处理相关 -->
		<ion-item class="sitem" *ngIf="inputView.applynextlink">
			<ion-label fixed><span>*</span>{{inputViewName.applynextlink}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applynextlink"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applynextman">
			<ion-label fixed><span>*</span>{{inputViewName.applynextman}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applynextman" interface="popover">
				<ion-option value="nes">NES</ion-option>
				<ion-option value="n64">Nintendo64</ion-option>
				<ion-option value="ps">PlayStation</ion-option>
				<ion-option value="genesis">Sega Genesis</ion-option>
				<ion-option value="saturn">Sega Saturn</ion-option>
				<ion-option value="snes">SNES</ion-option>
			</ion-select>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<!--附件上传相关 -->

		<!--执行相关 -->
		<ion-item class="aitem">
			<button ion-button>提交</button>
		</ion-item>
	</ion-list>
</ion-content>